package com.sgq.vue.dao.resource;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sgq.vue.entity.resource.Weather;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: 83778
 * @date: 2023-12-19 18:07
 * @desc:
 */
@Mapper
public interface WeatherMapper extends BaseMapper<Weather> {

    Integer saveUserWeather(@Param("userId")Long userId,@Param("cityIds") List<Long> cityIds);

    List<Long> selectCityIdsByUserId(Long userId);

    Integer deleteByUserId(@Param("userId") Long userId);
}
